/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2025-09-15
 * Time: 23:39
 */
class Sum{
    public int add(int a, int b){
        while(b != 0){
            int x = a ^ b;
            int carry = (a & b) << 1;
            a = x;
            b = carry;
        }
        return a;
    }
}


public class demo1 {
    public static void main(String[] args) {
        Sum sum = new Sum();
        int c = sum.add(2,3);
        System.out.println(c);
    }
}
